@layout("/common/_container.html",{plugins:["ztree"],js:["/assets/modular/coin/option/contract_option_coin.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">期权交易对</span>
</div>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-xs12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form toolbar">
                        <div class="layui-form-item">

                            <div class="layui-inline">


                                <button id="btnAdd" class="layui-btn icon-btn"><i class="layui-icon">&#xe654;</i>添加</button>


                            </div>
                        </div>
                    </div>
                    <table class="layui-table" id="spotTable" lay-filter="spotTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/html" id="ctrlUpTpl">
    <input type="checkbox" lay-filter="status" value="{{d.id}}" lay-skin="switch" lay-text="启用|禁用" {{d.ctrlUp=='Y'?'checked':''}} />
</script>
<script type="text/html" id="ctrlDownTpl">
    <input type="checkbox" lay-filter="status2" value="{{d.id}}" lay-skin="switch" lay-text="启用|禁用" {{d.ctrlDown=='Y'?'checked':''}} />
</script>
<script type="text/html" id="tableBar">
    @if(shiro.hasPermission("/spot/edit")){
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="edit">修改</a>
    @}
    @if(shiro.hasPermission("/spot/delete")){
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>
    @}
</script>

@}
